package cn.stylefeng.guns.dao;

import cn.stylefeng.guns.pojo.Level;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LevelDao extends BaseMapper<Level> {

    @Select("select l.id, l.t_level_name from tb_level l")
    @Results({
            @Result(column = "id", property = "id"),
            @Result(column = "t_level_name", property = "tLevelName")
    })
    List<Level> findLevel();
}
